package com.bcxj.servicemap.controller;

import com.bcxj.internalcommon.dto.PointRequest;
import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.servicemap.service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.xml.ws.Response;

/**
 * ClassName: PointController
 * Package: com.bcxj.servicemap.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/2 18:09
 * @Version 1.0
 * @Since 1.0
 */
@RestController
@RequestMapping("/point")
public class PointController {

    @Autowired
    private PointService pointService;

    @PostMapping("/upload")
    public ResponseResult addPoint(@RequestBody PointRequest pointRequest) {
       return pointService.upload(pointRequest);
    }

}
